Skip to content

Fix Vercel prune target ownership and improve failure diagnostics - #14

Merged
achadha235 merged 2 commits into
mainfrom
abhi/improve-reconcilation
Jul 26, 2026
Merged

Fix Vercel prune target ownership and improve failure diagnostics#14
achadha235 merged 2 commits into
mainfrom
abhi/improve-reconcilation

Conversation

@achadha235

@achadha235 achadha235 commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Vercel prune ownership: match remote env vars by exact scope.targets (not overlap), so multi-target shared deployments no longer prune sibling production-/preview-only rows. Same rule for project and shared env.
  • Provider error visibility: include bounded, secret-redacted provider response detail in SafeError messages, --verbose DEBUG logs (METHOD URL → status: detail), and mutation audit error_message / error_hint.
  • Validation context: missing logical-id errors name the deployment and destination (plus a hint).
  • Vercel shared PATCH: omit empty projectId on updates (create already did), avoiding 400: No Shared Environment Variables were updated.
  • Docs/examples updated for the ownership rule and richer example config.

Test plan

  • uv run pytest tests/integration/test_vercel.py tests/unit/test_http_retry.py tests/unit/test_audit.py tests/unit/test_validate_plan.py tests/security/test_canary_channels.py
  • Apply with --prune against a Vercel team that has shared vars partitioned as {production}, {preview}, and {production, preview} — confirm no cross-deletes
  • Force a provider 4xx with --verbose — confirm CLI/audit show the provider message and DEBUG shows method/URL
  • Validate a deployment referencing a logical id missing from its set — confirm error names deployment + destination

@achadha235 achadha235 changed the title Improve reconciliation for shared and overlapping deployments Fix Vercel prune target ownership and improve failure diagnostics Jul 26, 2026
@achadha235
achadha235 merged commit 82b2844 into main Jul 26, 2026
2 checks passed
@achadha235
achadha235 deleted the abhi/improve-reconcilation branch July 26, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant